package com.ynet.middleground.mobile.approve.request;

import com.ynet.middleground.approve.bean.CommentFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 项目名：ifp-mobile-approve <br>
 * 包名：com.ynet.middleground.mobile.approve.request <br>
 * 类名：RecallBackTaskReq <br>
 * 描述：
 *
 * @author liwq
 * @create 2023-03-14 10:18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "退回服务处理请求信息（包含驳回原因、附件列表字段）")
public class RecallBackTaskWithReasonReq extends RecallBackTaskReq {

    private static final long serialVersionUID = -5645036856797669365L;

    /**
     * 0: 驳回修改， 1：不同意
     */
    @NotNull(message = "驳回类型（驳回原因）不能为空")
    @ApiModelProperty(value = "驳回类型（驳回原因）", required = true)
    private Integer type;

    @ApiModelProperty(value = "审批意见附件列表")
    private List<CommentFile> commentFiles;

}
